"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app;
  router.get("/", controller.home.index);

  // 定义获取验证码接口
  router.post("/codes", controller.code.create);
};
